package net.youball.conf.entity;

import java.util.Date;

import net.youball.utils.String.RandomUtils;

public class Captcha {

	/**
	 * 验证码类
	 */
	private String code;
	private Long time;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Long getTime() {
		return time;
	}
	public void setTime(Long time) {
		this.time = time;
	}
	@Override
	public String toString() {
		return "Captcha [code=" + code + ", time=" + time + "]";
	}
	public Captcha(String code, Long time) {
		super();
		this.code = code;
		this.time = time;
	}
	public Captcha(){
		
	}
	public Captcha(int size){
		this.code=RandomUtils.getRand(size);
		this.time=new Date().getTime();
	}
	
	
}
